package com.wtwd.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wtwd.device.model.entity.Customer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zdl
 * @since 2021-08-03
 */
@Mapper
public interface CustomerMapper extends BaseMapper<Customer> {

    List<Customer> getAllCustomerByLikeName(@Param("name") String name);

    Customer getCustomerById(@Param("customerId") Long customerId);

    Customer getCustomerByName(@Param("customerName") String customerName);

    List<Customer> getAllCustomer();

}
